<?php
/**
 * @author    JoomlaShine.com http://www.joomlashine.com
 * @copyright Copyright (C) 2008 - 2011 JoomlaShine.com. All rights reserved.
 * @license   GNU/GPL v2 http://www.gnu.org/licenses/gpl-2.0.html
 */

	// No direct access
	defined('_JEXEC') or die('Restricted index access');
	define('YOURBASEPATH', dirname(__FILE__));

	JHTML::_('behavior.framework', false);

	// Template setup
	require_once(YOURBASEPATH.DS.'includes'.DS.'lib'.DS.'jsn_utils.php');
	require_once(YOURBASEPATH.DS.'includes'.DS.'jsn_config.php');
	require_once(YOURBASEPATH.DS.'includes'.DS.'jsn_setup.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- <?php echo $template_details->name; ?> <?php echo $template_details->version; ?> -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language ?>" dir="<?php echo $template_direction; ?>">
<head>
	<jdoc:include type="head" />
	<?php require_once(YOURBASEPATH.DS.'includes'.DS.'jsn_head.php'); ?>
</head>
<body id="jsn-master" class="jsn-textstyle-<?php echo $template_textstyle; ?> jsn-textsize-<?php echo $template_textsize; ?> jsn-color-<?php echo $template_color; ?> jsn-direction-<?php echo $template_direction; ?><?php echo ($pageclass != '')?' '.$pageclass:''; ?><?php echo ($is_ie6)?' jsn-ie6':''; ?><?php echo ($is_ie7)?' jsn-ie7':''; ?>">
	<div id="jsn-page">
	<?php
		/*====== Show modules in position "stick-lefttop" ======*/
		if ($this->countModules('stick-lefttop') > 0) {
	?>
		<div id="jsn-pos-stick-lefttop">
			<jdoc:include type="modules" name="stick-lefttop" style="jsnmodule" />
		</div>
	<?php
		}

		/*====== Show modules in position "stick-leftmiddle" ======*/
		if ($this->countModules('stick-leftmiddle') > 0) {
	?>
		<div id="jsn-pos-stick-leftmiddle">
			<jdoc:include type="modules" name="stick-leftmiddle" style="jsnmodule" />
		</div>
	<?php
		}

		/*====== Show modules in position "stick-leftbottom" ======*/
		if ($this->countModules('stick-leftbottom') > 0) {
	?>
		<div id="jsn-pos-stick-leftbottom">
			<jdoc:include type="modules" name="stick-leftbottom" style="jsnmodule" />
		</div>
	<?php
		}

		/*====== Show modules in position "stick-righttop" ======*/
		if ($this->countModules('stick-righttop') > 0) {
	?>
		<div id="jsn-pos-stick-righttop">
			<jdoc:include type="modules" name="stick-righttop" style="jsnmodule" />
		</div>
	<?php
		}

		/*====== Show modules in position "stick-rightmiddle" ======*/
		if ($this->countModules('stick-rightmiddle') > 0) {
	?>
		<div id="jsn-pos-stick-rightmiddle">
			<jdoc:include type="modules" name="stick-rightmiddle" style="jsnmodule" />
		</div>
	<?php
		}

		/*====== Show modules in position "stick-rightbottom" ======*/
		if ($this->countModules('stick-rightbottom') > 0) {
	?>
		<div id="jsn-pos-stick-rightbottom">
			<jdoc:include type="modules" name="stick-rightbottom" style="jsnmodule" />
		</div>
	<?php
		}
	?>
		<div id="jsn-header">
<!--			<div id="jsn-logo">
			<?php
				/*====== Show modules in position "logo" ======*/
				if ($this->countModules('logo') > 0) {
			?>
				<div id="jsn-pos-logo">
					<jdoc:include type="modules" name="logo" style="jsnmodule" />
				</div>
			<?php
				/*====== If there are NO modules in position "logo", then show logo image file "logo.png" ======*/
				} else {
					/*====== Attach link to logo image ======*/
					if ($logo_link != "") {
						echo '<a href="'.$logo_link.'" title="'.$logo_slogan.'">';
					}
					if ($logo_path == "") {
						$logo_path = $template_path."/images/".($enable_colored_logo?"colors/$template_color/":'')."logo.png";
					}
			?>
				<img src="<?php echo $logo_path; ?>" alt="<?php echo $logo_slogan; ?>" />
			<?php
					if ($logo_link != "") {
						echo '</a>';
					}
				}
			?>

                                --><div style="margin: 5px;width: 100%">&nbsp;</div><!--

			</div>-->
			<div id="jsn-headerright">
			<?php
				/*====== Show modules in position "top" ======*/
				if ($this->countModules('top') > 0) {
			?>
				<div id="jsn-pos-top">
					<jdoc:include type="modules" name="top" style="jsnmodule" />
				</div>
			<?php
				}
			?>
			</div>
		</div>
		<div id="jsn-body">
		<?php
			if ($jsnutils->countPositions($this, array('mainmenu', 'toolbar'))) {
		?>
			<div id="jsn-menu" class="clearafter"><div id="jsn-menu_inner" class="clearafter">
			<?php
				/*====== Show modules in position "mainmenu" ======*/
				if ($this->countModules('mainmenu') > 0) {
			?>
				<div id="jsn-pos-mainmenu">
					<jdoc:include type="modules" name="mainmenu" style="jsnmodule" />
				</div>
			<?php
				}

				/*====== Show modules in position "toolbar" ======*/
				if ($this->countModules('toolbar') > 0) {
			?>
				<div id="jsn-pos-toolbar">
					<jdoc:include type="modules" name="toolbar" style="jsnmodule" />
				</div>
			<?php
				}
			?>
			</div></div>
		<?php
			}

			/*====== Show modules in content top area ======*/
			if ($jsnutils->countPositions($this, array('promo-left', 'promo', 'promo-right', 'content-top'))) {
		?>
			<div id="jsn-content-top" class="<?php echo (($has_promoleft)?'jsn-haspromoleft ':'') ?><?php echo (($has_promoright)?'jsn-haspromoright ':'') ?>"><div id="jsn-content-top_inner"><div id="jsn-content-top_inner1">
				<div id="jsn-promo" class="clearafter">
			<?php
				/*====== Show modules in position "promo-left" ======*/
				if ($this->countModules('promo-left') > 0) {
			?>
                    <div id="jsn-pos-promo-left"><div id="jsn-pos-promo-left_inner">
						<jdoc:include type="modules" name="promo-left" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
                    </div></div>
			<?php
				}

				/*====== Show modules in position "promo" ======*/
				if ($this->countModules('promo') > 0) {
			?>
                    <div id="jsn-pos-promo">
                        <jdoc:include type="modules" name="promo" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
                    </div>
			<?php
				}

				/*====== Show modules in position "promo-right" ======*/
				if ($this->countModules('promo-right') > 0) {
			?>
                    <div id="jsn-pos-promo-right"><div id="jsn-pos-promo-right_inner">
						<jdoc:include type="modules" name="promo-right" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
                    </div></div>
			<?php
				}
			?>
				</div>
			<?php
				/*====== Show modules in position "content-top" ======*/
				if ($this->countModules('content-top') > 0) {
			?>
				<div id="jsn-pos-content-top" class="jsn-modulescontainer jsn-horizontallayout jsn-modulescontainer<?php echo $this->countModules('content-top'); ?> clearafter">
					<jdoc:include type="modules" name="content-top" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
				</div>
			<?php
				}
			?>
			</div></div></div>
		<?php
			}
		?>
			<div id="jsn-content" class="<?php echo (($has_left)?'jsn-hasleft ':'') ?><?php echo (($has_right)?'jsn-hasright ':'') ?><?php echo (($has_innerleft)?'jsn-hasinnerleft ':'') ?><?php echo (($has_innerright)?'jsn-hasinnerright ':'') ?>">
				<div id="jsn-maincontent"><div id="jsn-maincontent_inner" class="clearafter">
					<div id="jsn-maincontent_inner1"><div id="jsn-maincontent_inner2"><div id="jsn-maincontent_inner3"><div id="jsn-maincontent_inner4" class="clearafter">
						<div id="jsn-centercol">
							<div id="jsn-centercol_inner">
		<?php
			/*====== Show modules in position "breadcrumbs" ======*/
			if ($this->countModules('breadcrumbs') > 0) {
		?>
								<div id="jsn-pos-breadcrumbs">
									<jdoc:include type="modules" name="breadcrumbs" />
								</div>
		<?php
			}
		?>
								<jdoc:include type="message" />
		<?php
			/*====== Show modules in position "user-top" ======*/
			if ($this->countModules('user-top') > 0) {
		?>
								<div id="jsn-pos-user-top" class="jsn-modulescontainer jsn-horizontallayout jsn-modulescontainer<?php echo $this->countModules('user-top'); ?> clearafter">
									<jdoc:include type="modules" name="user-top" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
								</div>
		<?php
			}

			/*====== Show modules in position "user1" and "user2" ======*/
			$positionCount = $jsnutils->countPositions($this, array('user1', 'user2'));
			if ($positionCount)
			{
				$grid_suffix = $positionCount;
		?>
								<div id="jsn-usermodules1" class="jsn-modulescontainer jsn-modulescontainer<?php echo $grid_suffix; ?>">
									<div id="jsn-usermodules1_inner_grid<?php echo $grid_suffix; ?>">
			<?php
				/*====== Show modules in position "user1" ======*/
				if ($this->countModules('user1') > 0) {
			?>
										<div id="jsn-pos-user1">
											<jdoc:include type="modules" name="user1" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
										</div>
			<?php
				}

				/*====== Show modules in position "user2" ======*/
				if ($this->countModules('user2') > 0) {
			?>
										<div id="jsn-pos-user2">
											<jdoc:include type="modules" name="user2" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
										</div>
			<?php
				}
			?>
										<div class="clearbreak"></div>
									</div>
								</div>
		<?php
			}
		?>
								<div id="jsn-mainbody-content">
		<?php
			/*====== Show modules in position "mainbody-top" ======*/
			if ($this->countModules('mainbody-top') > 0) {
		?>
									<div id="jsn-pos-mainbody-top" class="jsn-modulescontainer jsn-horizontallayout jsn-modulescontainer<?php echo $this->countModules('mainbody-top'); ?> clearafter">
										<jdoc:include type="modules" name="mainbody-top" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
									</div>
		<?php
			}

			/*====== Show mainbody ======*/
			if ($show_frontpage) {
		?>
									<div id="jsn-mainbody">
										<jdoc:include type="component" />
									</div>
		<?php
			}

			/*====== Show modules in position "mainbody-bottom" ======*/
			if ($this->countModules('mainbody-bottom') > 0) {
		?>
									<div id="jsn-pos-mainbody-bottom" class="jsn-modulescontainer jsn-horizontallayout jsn-modulescontainer<?php echo $this->countModules('mainbody-bottom'); ?> clearafter">
										<jdoc:include type="modules" name="mainbody-bottom" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
									</div>
		<?php
			}
		?>
								</div>
		<?php
			/*====== Show modules in position "user3" and "user4" ======*/
			$positionCount = $jsnutils->countPositions($this, array('user3', 'user4'));
			if ($positionCount) {
				$grid_suffix = $positionCount;
		?>
								<div id="jsn-usermodules2" class="jsn-modulescontainer jsn-modulescontainer<?php echo $grid_suffix; ?>">
									<div id="jsn-usermodules2_inner_grid<?php echo $grid_suffix; ?>">
			<?php
				/*====== Show modules in position "user3" ======*/
				if ($this->countModules('user3') > 0) {
			?>
										<div id="jsn-pos-user3">
											<jdoc:include type="modules" name="user3" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
										</div>
			<?php
				}

				/*====== Show modules in position "user4" ======*/
				if ($this->countModules('user4') > 0) { ?>
										<div id="jsn-pos-user4">
											<jdoc:include type="modules" name="user4" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
										</div>
			<?php
				}
			?>
										<div class="clearbreak"></div>
									</div>
								</div>
		<?php
			}

			/*====== Show modules in position "user-bottom" ======*/
			if ($this->countModules('user-bottom') > 0) { ?>
								<div id="jsn-pos-user-bottom" class="jsn-modulescontainer jsn-horizontallayout jsn-modulescontainer<?php echo $this->countModules('user-bottom'); ?> clearafter">
									<jdoc:include type="modules" name="user-bottom" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
								</div>
		<?php
			}

			/*====== Show modules in position "banner" ======*/
			if ($this->countModules('banner') > 0) {
		?>
								<div id="jsn-pos-banner">
									<jdoc:include type="modules" name="banner" style="jsnmodule" />
								</div>
		<?php
			}
		?>
							</div>
						</div>
		<?php
			/*====== Show modules in position "innerleft" ======*/
			if ($this->countModules('innerleft') > 0) {
		?>
						<div id="jsn-pos-innerleft">
							<div id="jsn-pos-innerleft_inner">
								<jdoc:include type="modules" name="innerleft" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
							</div>
						</div>
		<?php
			}

			/*====== Show modules in position "innerright" ======*/
			if ($this->countModules('innerright') > 0) {
		?>
						<div id="jsn-pos-innerright">
							<div id="jsn-pos-innerright_inner">
								<jdoc:include type="modules" name="innerright" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
							</div>
						</div>
		<?php
			}
		?>
					</div></div></div></div>
				</div></div>
		<?php
			/*====== Show elements in left side column ======*/
			if ($jsnutils->countPositions($this, array('left-top', 'left-2', 'left', 'left-bottom'))) {
		?>
					<div id="jsn-leftsidecontent">
						<div id="jsn-leftsidecontent_inner">
			<?php
				/*====== Show modules in position "left-top" ======*/
				if ($this->countModules('left-top') > 0) {
			?>
	                        <div id="jsn-pos-left-top">
	                        	<jdoc:include type="modules" name="left-top" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
	                        </div>
	        <?php
				}

				/*====== Show modules in position "left" and "left-2" ======*/
				$positionCount = $jsnutils->countPositions($this, array('left-2', 'left'));
				if ($positionCount) {
			?>
							<div id="jsn-leftside-middle" class="jsn-positionscontainer jsn-positionscontainer<?php echo $positionCount; ?>">
				<?php
					/*====== Show modules in position "left-2" ======*/
					if ($this->countModules('left-2') > 0) {
				?>
	                            <div id="jsn-pos-left-2">
	                            	<jdoc:include type="modules" name="left-2" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
	                            </div>
	            <?php
					}

					/*====== Show modules in position "left" ======*/
					if ($this->countModules('left') > 0) {
				?>
	                            <div id="jsn-pos-left">
	                             	<jdoc:include type="modules" name="left" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
	                            </div>
	            <?php
					}
				?>
	                            <div class="clearbreak"></div>
							</div>
			<?php
				}

				/*====== Show modules in position "left-bottom" ======*/
				if ($this->countModules('left-bottom') > 0) {
			?>
	                        <div id="jsn-pos-left-bottom">
	                        	<jdoc:include type="modules" name="left-bottom" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
	                        </div>
	        <?php
				}
			?>
						</div>
					</div>
		<?php
			}

			/*====== Show elements in right side column ======*/
			if ($jsnutils->countPositions($this, array('right-top', 'right', 'right-2', 'right-bottom'))) {
		?>
					<div id="jsn-rightsidecontent">
						<div id="jsn-rightsidecontent_inner">
			<?php
				/*====== Show modules in position "right-top" ======*/
				if ($this->countModules('right-top') > 0) {
			?>
	                        <div id="jsn-pos-right-top">
	                          	<jdoc:include type="modules" name="right-top" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
	                        </div>
	        <?php
				}

				/*====== Show modules in position "right" and "right-2" ======*/
				$positionCount = $jsnutils->countPositions($this, array('right', 'right-2'));
				if ($positionCount) {
			?>
							<div id="jsn-rightside-middle" class="jsn-positionscontainer jsn-positionscontainer<?php echo $positionCount; ?>">
				<?php
					/*====== Show modules in position "right" ======*/
					if ($this->countModules('right') > 0) { ?>
	                            <div id="jsn-pos-right">
	                            	<jdoc:include type="modules" name="right" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
	                            </div>
				<?php
					}

					/*====== Show modules in position "right-2" ======*/
					if ($this->countModules('right-2') > 0) {
				?>
	                            <div id="jsn-pos-right-2">
	                            	<jdoc:include type="modules" name="right-2" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
	                            </div>
				<?php
					}
				?>
	                            <div class="clearbreak"></div>
							</div>
			<?php
				}

				/*====== Show modules in position "right-bottom" ======*/
				if ($this->countModules('right-bottom') > 0) {
			?>
	                        <div id="jsn-pos-right-bottom">
	                        	<jdoc:include type="modules" name="right-bottom" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
	                        </div>
	        <?php
				}
			?>
						</div>
					</div>
		<?php
			}
		?>
			</div>
		<?php
			/*====== Show elements in content bottom area ======*/
			if ($jsnutils->countPositions($this, array('content-bottom', 'user5', 'user6', 'user7'))) {
		?>
			<div id="jsn-content-bottom">
			<?php
				/*====== Show modules in position "content-bottom" ======*/
				if ($this->countModules('content-bottom') > 0) {
			?>
                <div id="jsn-pos-content-bottom" class="jsn-modulescontainer jsn-horizontallayout jsn-modulescontainer<?php echo $this->countModules('content-bottom'); ?> clearafter">
                	<jdoc:include type="modules" name="content-bottom" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
                </div>
			<?php
				}

				/*====== Show modules in position "user5", "user6", "user7" ======*/
				$positionCount = $jsnutils->countPositions($this, array('user5', 'user6', 'user7'));
				if ($positionCount) {
					$grid_suffix = $positionCount;
			?>
				<div id="jsn-usermodules3" class="jsn-modulescontainer jsn-modulescontainer<?php echo $grid_suffix; ?>">
				<?php
					/*====== Show modules in position "user5" ======*/
					if ($this->countModules('user5') > 0) {
				?>
					<div id="jsn-pos-user5">
						<jdoc:include type="modules" name="user5" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
					</div>
				<?php
					}

					/*====== Show modules in position "user6" ======*/
					if ($this->countModules('user6') > 0) {
				?>
					<div id="jsn-pos-user6">
						<jdoc:include type="modules" name="user6" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
					</div>
				<?php
					}

					/*====== Show modules in position "user7" ======*/
					if ($this->countModules('user7') > 0) {
				?>
					<div id="jsn-pos-user7">
						<jdoc:include type="modules" name="user7" style="jsnmodule" class="jsn-roundedbox jsn-duohead" />
					</div>
				<?php
					}
				?>
					<div class="clearbreak"></div>
				</div>
			<?php
				}
			?>
            </div>
		<?php
			}
		?>
		</div>
	<?php
		/*====== Show modules in position "footer" and "bottom" ======*/
		$positionCount = $jsnutils->countPositions($this, array('footer', 'bottom'));
		if ($positionCount) {
	?>
		<div id="jsn-footer" class="jsn-positionscontainer jsn-positionscontainer<?php echo $positionCount; ?> clearafter">
		<div id="jsn-footer_inner"><div id="jsn-footer_inner2" class="clearafter">
		<?php
			/*====== Show modules in position "footer" ======*/
			if ($this->countModules('footer') > 0) {
		?>
			<div id="jsn-footerleft">
				<div id="jsn-pos-footer">
					<jdoc:include type="modules" name="footer" style="jsnmodule" />
				</div>
			</div>
		<?php
			}

			/*====== Show modules in position "bottom" ======*/
			if ($this->countModules('bottom') > 0) {
		?>
			<div id="jsn-footerright">
				<div id="jsn-pos-bottom">
					<jdoc:include type="modules" name="bottom" style="jsnmodule" />
				</div>
			</div>
		<?php
			}
		?>
		</div></div>
		</div>
	<?php
		}
	?>
	</div>
	<?php
		/*====== Show brand. Please do not remove following code or we can not support you with this product ! ======*/
		if ($show_brand) {
	?>
		<div id="jsn-brand">
			<?php echo JText::_('DESIGN_BY'); ?>
		</div>
	<?php
		}
	?>
	<jdoc:include type="modules" name="debug" />
</body>
</html>